* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: #4a90e2;
}

.btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #3a7bc8;
}

.link {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

.link a {
    color: #4a90e2;
    text-decoration: none;
}

.link a:hover {
    text-decoration: underline;
}

/* 添加以下新样式 */
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #4a90e2;
    margin-bottom: 0.5rem;
}

.card p {
    color: #666;
    font-size: 0.9rem;
}

.logout-btn {
    background-color: #e74c3c;
    margin-top: 2rem;
}

.logout-btn:hover {
    background-color: #c0392b;
}

/* 添加状态消息样式 */
.status-message {
    padding: 0.5rem 0.75rem;
    margin: 0.5rem auto;
    border-radius: 4px;
    text-align: center;
    display: none;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    max-width: 300px;
    font-size: 0.9rem;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.status-message.fade-out {
    opacity: 0;
}

/* 成功消息样式 */
.status-success {
    display: block;
}

/* 错误消息样式 */
.status-error {
    display: block;
}

/* 字段级错误提示样式 */
.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: #f8d7da;
    border-radius: 3px;
    display: inline-block;
}

/* 输入框错误状态 */
input.error {
    border-color: #e74c3c;
}

input.error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}
/* 背景装饰元素样式 */
:root {
  --decoration-yellow: #ffe082;
  --decoration-red: #f44336;
  --decoration-green: #4caf50;
}

.decoration {
  position: absolute;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.decoration-yellow {
  top: -24px;
  right: 60px;
  width: 350px;
  height: 120px;
  background: var(--decoration-yellow);
  border-radius: 70px 180px 80px 120px;
  transform: rotate(15deg);
}

.decoration-red {
  left: 120px;
  top: 320px;
  width: 120px;
  height: 120px;
  background: var(--decoration-red);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-radius: 16px;
}

.decoration-green {
  right: 0;
  bottom: 0;
  width: 340px;
  height: 240px;
  background: var(--decoration-green);
  border-radius: 60px 80px 190px 140px;
  transform: rotate(-20deg);
}

.decoration:hover {
  opacity: 0.3;
  transform: scale(1.05);
}